using System.ComponentModel.DataAnnotations;
using System.Data.Entity.ModelConfiguration;

namespace NhaThuocOnline.Entities.Mapping
{
    public class QuyCachDongGoiMap : EntityTypeConfiguration<QuyCachDongGoi>
    {
        public QuyCachDongGoiMap()
        {
            // Primary Key
            this.HasKey(t => t.Id);

            // Properties
            this.Property(t => t.Id)
                .HasDatabaseGeneratedOption(DatabaseGeneratedOption.None);

            this.Property(t => t.QuyCachDongGoi1)
                .HasMaxLength(100);

            // Table & Column Mappings
            this.ToTable("QuyCachDongGoi");
            this.Property(t => t.Id).HasColumnName("Id");
            this.Property(t => t.QuyCachDongGoi1).HasColumnName("QuyCachDongGoi");
            this.Property(t => t.SoLuongQuyDoiTuongUng).HasColumnName("SoLuongQuyDoiTuongUng");
        }
    }
}
